package com.ruoyi.caigou.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购订单商品对象 finer_buy_order_goods
 * 
 * @author lvql
 * @date 2024-11-02
 */
public class BuyOrderGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 采购订单编号 */
    @Excel(name = "采购订单编号")
    private String buyOrderCode;

    /** 源单编号 */
    @Excel(name = "源单编号")
    private String sourceCode;

    /** 商品id */
    @Excel(name = "商品id")
    private Integer goodsId;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 税率 */
    @Excel(name = "税率")
    private Double tax;

    /** 折扣率 */
    @Excel(name = "折扣率")
    private Double discount;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private Integer purchaseQuantity;

    /** 采购金额 */
    @Excel(name = "采购金额")
    private BigDecimal purchaseAmount;

    /** 已入库数量 */
    @Excel(name = "已入库数量")
    private Integer inventoryQuantity;

    /** 已付款金额 */
    @Excel(name = "已付款金额")
    private BigDecimal paidAmount;

    private String proName;

    private String typeName;

    private String unitName;

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setBuyOrderCode(String buyOrderCode) 
    {
        this.buyOrderCode = buyOrderCode;
    }

    public String getBuyOrderCode() 
    {
        return buyOrderCode;
    }
    public void setSourceCode(String sourceCode) 
    {
        this.sourceCode = sourceCode;
    }

    public String getSourceCode() 
    {
        return sourceCode;
    }
    public void setGoodsId(Integer goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId() 
    {
        return goodsId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTax(Double tax) 
    {
        this.tax = tax;
    }

    public Double getTax() 
    {
        return tax;
    }
    public void setDiscount(Double discount) 
    {
        this.discount = discount;
    }

    public Double getDiscount()
    {
        return discount;
    }
    public void setPurchaseQuantity(Integer purchaseQuantity) 
    {
        this.purchaseQuantity = purchaseQuantity;
    }

    public Integer getPurchaseQuantity()
    {
        return purchaseQuantity;
    }
    public void setPurchaseAmount(BigDecimal purchaseAmount) 
    {
        this.purchaseAmount = purchaseAmount;
    }

    public BigDecimal getPurchaseAmount() 
    {
        return purchaseAmount;
    }
    public void setInventoryQuantity(Integer inventoryQuantity) 
    {
        this.inventoryQuantity = inventoryQuantity;
    }

    public Integer getInventoryQuantity() 
    {
        return inventoryQuantity;
    }
    public void setPaidAmount(BigDecimal paidAmount) 
    {
        this.paidAmount = paidAmount;
    }

    public BigDecimal getPaidAmount() 
    {
        return paidAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buyOrderCode", getBuyOrderCode())
            .append("sourceCode", getSourceCode())
            .append("goodsId", getGoodsId())
            .append("price", getPrice())
            .append("tax", getTax())
            .append("discount", getDiscount())
            .append("purchaseQuantity", getPurchaseQuantity())
            .append("purchaseAmount", getPurchaseAmount())
            .append("inventoryQuantity", getInventoryQuantity())
            .append("paidAmount", getPaidAmount())
            .toString();
    }
}
